import request from '../utils/request'

module.exports = {
    // 模拟登陆
    simulatedLogin: (data) => request('/charge-api/auth/user/test', 'GET', data),
    // 注册
    maRegister: (data) => request('/charge-api/auth/ma/register', 'POST', data),
    // 获取手机号
    maPhonenumber: (data) => request('/charge-api/auth/ma/phonenumber', 'POST', data),
    // 登录
    maToken: (data) => request('/charge-api/auth/ma/token', 'POST', data),
    // 首页接口
    homePage: (data) => request('/charge-api/index', 'POST', data),
    // 首页忽近的充电站
    homePage1: (data) => request('/charge-api/index/org', 'POST', data),
    // 首页进度接口
    getProgress: (data) => request('/charge-api/index/progress', 'POST', data),
    // 活动列表
    activityList: (data) => request('/charge-api/activity/list', 'POST', data),
    // 充电站列表
    orgList: (data) => request('/charge-api/org/list', 'POST', data),
    // 充电站详情
    orgDetail: (data) => request('/charge-api/org/detail', 'POST', data),
    //站点终端列表
    terminalList: (data) => request('/charge-api/org/terminal/list', 'POST', data),
    // 充电终端价格列表
    terminalPriceList: (data) => request('/charge-api/terminal/price/list', 'POST', data),
    // 客服中心
    customerList: (data) => request('/charge-api/customer/list', 'POST', data),
    // 客服中心获取电话号码
    customerPhone: (data) => request('/charge-api/customer/phone', 'POST', data),
    // 预约预览
    subscribePreview: (data) => request('/charge-api/subscribe/preview', 'POST', data),
    //预约充电下单
    subscribePlaceOrder: (data) => request('/charge-api/subscribe/place/order', 'POST', data),
    // 预约详情
    subscribeDetail: (data) => request('/charge-api/subscribe/detail', 'POST', data),
    // 预约延时
    subscribeDelay: (data) => request('/charge-api/subscribe/delay', 'POST', data),
    // 结束预约
    subscribeFinish: (data) => request('/charge-api/subscribe/finish', 'POST', data),
    //积分兑换首页接口
    exchangeList: (data) => request('/charge-api/point/exchange-list', 'POST', data),
    // 积分兑换电子券
    pointExchange: (data) => request('/charge-api/point/exchange', 'POST', data),
    // 获取汽车品牌列表
    carList: (data) => request('/charge-api/car/list', 'POST', data),
    //用户电子券列表
    couponList: (data) => request('/charge-api/coupon/list', 'POST', data),
    // 新增发票抬头
    invoiceHeaderAdd: (data) => request('/charge-api/invoice/header/add', 'POST', data),
    // 发票抬头列表
    invoiceHeaderList: (data) => request('/charge-api/invoice/header/list', 'POST', data),
    // 发票抬头详情
    invoiceHeaderDetail: (data) => request('/charge-api/invoice/header/detail', 'POST', data),
    // 发票抬头修改
    invoiceHeaderUpdate: (data) => request('/charge-api/invoice/header/update', 'POST', data),
    // 删除发票抬头
    invoiceHeaderDelete: (data) => request('/charge-api/invoice/header/delete', 'POST', data),
    // 个人中心
    userCenter: (data) => request('/charge-api/user/center', 'POST', data),
    // 修改用户信息
    userEdit: (data) => request('/charge-api/user/edit', 'POST', data),
    // 充电终端信息
    terminalInfo: (data) => request('/charge-api/terminal/info', 'POST', data),
    // 预充值接口
    cardRecharge: (data) => request('/charge-api/pay/card-recharge', 'POST', data),
    // 充值完成微信支付
    rechargeSuccess: (data) => request('/charge-api/pay/recharge-success', 'POST', data),
    // 余额支付
    rechargePaySuccess: (data) => request('/charge-api/charge/pay/success', 'POST', data),
    // 充电预支付下单
    placeOrder: (data) => request('/charge-api/charge/place/order', 'POST', data),
    // 订单确认详情
    placeOrderDetail: (data) => request('/charge-api/charge/place/order-detail', 'POST', data),
    // 选择支付方式
    selectPaytype: (data) => request('/charge-api/charge/select/paytype', 'POST', data),
    // 发起支付详情页面接口
    confirmOrderDetail: (data) => request('/charge-api/charge/confirm/order-detail', 'POST', data),
    // 发起支付
    orderDoPay: (data) => request('/charge-api/charge/order/do-pay', 'POST', data),
    // 订单列表
    orderList: (data) => request('/charge-api/order/list', 'POST', data),
    // 充值页面
    rechargeCenter: (data) => request('/charge-api/recharge/center', 'POST', data),
    // 获取短信验证码
    smsCode: (data) => request('/charge-api/send/sms/code', 'POST', data),
    // 修改手机号
    changePhone: (data) => request('/charge-api/change/phone', 'POST', data),
    // 充电进度
    getProgressQuery:(data)=>request('/charge-api/charge/progress/list', 'POST', data),
    // 充电进度详情
    getProgressQueryDetail:(data)=>request('/charge-api/charge/progress/detail', 'POST', data),
    // 取消充电
    cancelCharging:(data)=>request('/charge-api/charge/finish', 'POST', data),
    // 充电预支付详情接口
    getAdvancePayment:(data)=>request('/charge-api/charge/place/preview', 'POST', data),
    // 发票列表
    invoicelist: (data) => request('/charge-api/invoice/list', 'POST', data),
    // 发票预览
    invoicePreview: (data) => request('/charge-api/invoice/preview', 'POST', data),
    // 申请开票页面
    invoicePage: (data) => request('/charge-api/open/invoice/page', 'POST', data),
    // 开票
    invoiceOpen: (data) => request('/charge-api/invoice/open', 'POST', data),
    // 新闻快讯详情
    newsFlash: (data) => request('/charge-api/consult/detail', 'POST', data),
}